<?php

class Application_Form_Entrar extends Zend_Form
{

    public function init()
    {
		// definicoes basicas do form
		$this->setName ( 'entrar' );
		$this->setAction ( '/meus-dados/entrar' );
		$this->setMethod ( 'post' );
		$this->setAttrib ( 'enctype', 'multipart/form-data' );
		$this->setAttrib ( 'id', 'form-entrar' );
		
		// elementos do form
		
		$email = new Zend_Form_Element_Text ( "email" );
		$email->setLabel ( "E-mail:" )
		->setAttrib ( "class", "inp-form" )
		->setRequired(TRUE)
		->setAllowEmpty(false)
		->addValidator('EmailAddress');
				
		$senha = new Zend_Form_Element_Password ( "senha" );
		$senha->setLabel ( "Senha:" )
		->setAttrib ( "class", "inp-form" )
		->setAllowEmpty(false)
		->setRequired(TRUE);
		
		$submit = new Zend_Form_Element_Submit ( "submit" );
		$submit->setLabel ( "Entrar" );
		
		$this->addElements ( array ( $email, $senha, $submit ) );
    }


}

